﻿// 1.Select the <h1> element
let h1Element = document.body.firstElementChild;
h1Element = document.body.children[0];

console.dir(h1Element);

// 2.Use the variable from (1) and get access to the "parent"
console.log(h1Element.parentElement);

// 3.Select the <h1> element
h1Element = document.getElementById('first-title');
console.dir(h1Element);

// 4.Select the second <p> element
let highlightedLink = document.querySelector('.highlight-link');
console.dir(highlightedLink);
highlightedLink.textContent = 'This was changed by Max!';

